<?php
$mysql = new SaeMysql();
$sql = "SELECT SUM(wx_lottery_num) FROM `wx_lottery`";
$data = $mysql->getData($sql);
$sum = $data[0]['SUM(wx_lottery_num)'];
echo $sum;
?>